Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rln-relay): waitFor startup, otherwise valid proofs will be marked invalid #1920

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Aug 21, 2023

Description

This PR ensures that messages are processed only after the rln-relay is ready to verify proofs, i.e updated till latest
head

Changes

  • s/await/waitFor in chat2/wakunode2/waku_node

Issue

Addresses a part of #1906

@rymnc rymnc self-assigned this Aug 21, 2023
@rymnc rymnc force-pushed the wait-for-rln-relay-startup branch from 5472776 to 3bdf851 Compare August 21, 2023 09:17
@github-actions
Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:1920

@rymnc rymnc marked this pull request as ready for review August 22, 2023 04:54
@rymnc rymnc force-pushed the wait-for-rln-relay-startup branch from 3bdf851 to 3e8602f Compare August 22, 2023 08:29
Copy link
Contributor

@alrevuelta alrevuelta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thanks!

Indeed, this should solve the problem that a node that just started (is out of sync with the contract, hence unaware of the tree and valid registrations) applies validation to messages with an outdated (or even empty tree). This would cause this node to flag valid messages as invalid (since its tree is not up to date) and this may result in descoring other peers + disconnecting for no reason.

@rymnc rymnc merged commit 6c6302f into master Aug 22, 2023
@rymnc rymnc deleted the wait-for-rln-relay-startup branch August 22, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants